#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
| Created on 2020/4/28 15:46

| @author: aimee.mei
"""


import sys, logging,traceback
from util.db_util import execute_query
from  proj_spec.industrial_chain.change_time import date_change_string,timestamp_change_date


def get_client_object_max_id():
    '''
    获取最新的产品id

    :return: id
    '''

    try:
        results = execute_query(
        "select MAX(id) from scm_product;")

        result = results[0][0]
        return result
    except Exception as e:
        logging.exception("Retrieve latest id failed!")
        logging.error(e)
        traceback.print_exc()
        return None